package com.app.designpatternslearn.behavior.statepattern

import com.app.designpatternslearn.behavior.statepattern.code.Context
import com.app.designpatternslearn.behavior.statepattern.code.StartState
import com.app.designpatternslearn.behavior.statepattern.code.StopState

fun main() {

    val context = Context()

    val stopState = StopState(context)
    stopState.doAction()

    val startState = StartState(context)
    startState.doAction()


    val state = context.state

    println("state --> $state")
}